package com.yudaob2b.backend.controller;

import com.yudaob2b.business.entity.SysUserEntity;
import com.yudaob2b.business.service.SysUserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

/**
 * @Author: Kidd.Tan
 * @Description
 * @Date: Create in 16:24 2018/7/3
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Resource(name = "sysUserService2")
    private SysUserService sysUserService;

    @RequestMapping("/test")
    public String test() {
        List<String> list = sysUserService.queryAllPerms((long) 1);
        System.out.println(list.size());
        return "ok";
    }
}
